<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/layoutCourtier.xhtml">


	<ui:define name="content">

		<p:panel header="#{msgs.titrePanelPrincipal}"
			style="width:1200px;height:800px;">

			<p:panel style="width:100%;height:100%;">

				<h:panelGrid columns="2" cellpadding="2" border="1">

					<p:graphicImage value="images/network2.png" />

					<h:outputText value="___________#{msgs.developpeurs} ___________" />

				</h:panelGrid>
			</p:panel>
			<h:form>
				<p:commandButton image="ui-icon ui-icon-star" immediate="true"
					style="width:120px" value="logout" action="#{manage.logout}"
					ajax="false" />

				<p:commandButton image="ui-icon ui-icon-star" immediate="true"
					style="width:120px" value="#{msgs.accueil}" action="versaccueil"
					ajax="false" />
			</h:form>

			<h:form>
				<h3>#{msgs.titrewb}</h3>
				<p:panel header="#{msgs.titrepanelwb}">
					<h:outputText
						value="#{msgs.location}: http://indigo:8090/PolicesStat/PoliceStatJDBCImplService?wsdl" />

				</p:panel>
				<h:panelGrid columns="3">
					<f:facet name="header">  
        #{msgs.demo} <p:spacer width="40" height="10" />  #{msgs.dispo}
                    </f:facet>
					
					<h:outputLabel for="numeroA" value="#{msgs.numeroPolice}:" />
					<p:inputText id="numeroA" value="#{webservice.numeroA}"
						required="false">
					</p:inputText>
					<p:message id="msgNumeroA" for="numeroA" />
            		<p:commandButton style="width:120px" value="#{msgs.prime}:"
						action="#{webservice.WSprime}" ajax="false" />
					<h:outputText value="#{msgs.resultat}: " />
					<h:outputText value="#{webservice.prime}" />
				
					
					<h:outputLabel for="numeroB" value="#{msgs.numeroPolice}:" />
                    <p:inputText id="numeroB" value="#{webservice.numeroB}"
                        required="false">
                    </p:inputText>
                    <p:message id="msgNumeroB" for="numeroB" />
                    <p:commandButton style="width:120px" value="#{msgs.total}"
                        action="#{webservice.WStotal}" ajax="false" />
                    <h:outputText value="#{msgs.resultat}: " />
                    <h:outputText value="#{webservice.total}" />
                    
                    <h:outputLabel for="numeroC" value="#{msgs.numeroPolice}" />
                    <p:inputText id="numeroC" value="#{webservice.numeroC}"
                        required="false">
                    </p:inputText>
                    <p:message id="msgNumeroC" for="numeroC" />
                    <p:commandButton style="width:140px" value="#{msgs.difference}"
                        action="#{webservice.WStotal}" ajax="false" />
                    <h:outputText value="#{msgs.resultat}: " />
                    <h:outputText value="#{webservice.difference}" />
                    
                    <h:outputLabel for="numeroD" value="#{msgs.numeroPolice}:" />
                    <p:inputText id="numeroD" value="#{webservice.numeroD}"
                        required="false">
                    </p:inputText>
                    <p:message id="msgNumeroD" for="numeroD" />
                    <p:commandButton style="width:120px" value="#{msgs.nbSinistres}"
                        action="#{webservice.WSnombreSinistres}" ajax="false" />
                    <h:outputText value="#{msgs.resultat}: " />
                    <h:outputText value="#{webservice.nombreSinistres}" />
                    
				</h:panelGrid>
			</h:form>

		</p:panel>

	</ui:define>
</ui:composition>